package com.ruoyi.system.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单详情对象 order_details
 * 
 * @author ruoyi
 * @date 2023-12-24
 */
public class OrderDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单详情ID */
    @Excel(name = "订单详情ID")
    private Long orderDetailsID;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long goodID;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long goodNum;

    public OrderDetails(Long orderDetailsID, Long goodID, Long goodNum) {
        this.orderDetailsID = orderDetailsID;
        this.goodID = goodID;
        this.goodNum = goodNum;
    }

    /** 商品信息 */
    private List<Goods> goodsList;

    public void setOrderDetailsID(Long orderDetailsID) 
    {
        this.orderDetailsID = orderDetailsID;
    }

    public Long getOrderDetailsID() 
    {
        return orderDetailsID;
    }
    public void setGoodID(Long goodID) 
    {
        this.goodID = goodID;
    }

    public Long getGoodID() 
    {
        return goodID;
    }
    public void setGoodNum(Long goodNum) 
    {
        this.goodNum = goodNum;
    }

    public Long getGoodNum() 
    {
        return goodNum;
    }

    public List<Goods> getGoodsList()
    {
        return goodsList;
    }

    public void setGoodsList(List<Goods> goodsList)
    {
        this.goodsList = goodsList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderDetailsID", getOrderDetailsID())
            .append("goodID", getGoodID())
            .append("goodNum", getGoodNum())
            .append("goodsList", getGoodsList())
            .toString();
    }
}
